package strategy.vo;

import lombok.Data;

import java.util.HashMap;
import java.util.Optional;

@Data
public class Ticket {
    public static void main(String[] args) {
        HashMap<String, Object> map = new HashMap<>();
        Optional<Object> k = Optional.ofNullable(map.get("key"));
    }
    private double price; //电影票价格
    private String type; //电影票类型

    private Movie movie;
    public Ticket(double price, String type) {
        this.price = price;
        this.type = type;
    }
}
